using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Crossborder.Domian.Products
{
    public class ProductClassify : BaseEntity
    {
        /// <summary>
        /// 产品分类
        /// </summary>
        /// <value></value>
        [Comment("产品分类Id")]
        public string ProClassifyId { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        /// <value></value>
        [Comment("产品Id")]
        public string ProductId { get; set; }

        /// <summary>
        /// 产品分类名称
        /// </summary>
        /// <value></value>
        [Comment("产品分类名称")]
        public string ClassifyName { get; set; }

        /// <summary>
        /// 产品价格（小数点保留后 3位数）
        /// </summary>
        /// <value></value>
        [Comment("产品价格（小数点保留后 3位数）")]
        public decimal? Price { get; set; }

        public void Create()
        {
            this.ProClassifyId = Guid.NewGuid().ToString();
            this.CreateDate = DateTime.Now;
            this.IsEnabled = true;
            this.IsDelete = false;
        }
    }
}